<template>
	<view>
		<!-- 项目列表展示 -->
		<view class="box_nRqu" v-for="item in projectData" :key="item.fid">
			<!-- 项目图片 -->
			<view>
				<image class="project-image" :src="imageUrl3" mode="aspectFill" />
			</view>
			<view class="box_wzqu">
				<!-- 项目标题 -->
				<view class="box_BT">{{ item['名称'] }}</view>

				<!-- 客户信息 -->
				<view class="box_Kh">客户：<text>{{ item['客户'] }}</text></view>

				<!-- 负责人、实施、开发、前端信息 -->
				<view class="box_Fzr">
					<view class="neirong">
						负责人：{{ item['负责人'] }}
						| 实施：{{ item['实施'] }}
						| 开发：{{ item['开发'] }}
						| 前端：{{ item['前端开发'] }}
						| 参与者：{{ item['参与者'] }}
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'ProjectData',
		props: {
			projectData: {
				type: Array,
				required: true
			},
			imageUrl3: {
				type: String,
				required: true
			}
		}
	};
</script>

<style scoped>
	/* 项目容器 */
	.box_nRqu {
		margin: 0 auto;
		margin-top: 20rpx;
		padding: 20rpx 30rpx;
		box-sizing: border-box;
		width: 690rpx;
		height: 220rpx;
		background: #FFFFFF;
		border-radius: 16rpx;
		display: flex;
		align-items: center;
	}

	/* 项目标题样式 */
	.box_BT {
		font-weight: bold;
		font-size: 32rpx;
		color: #222222;
	}

	/* 客户信息样式 */
	.box_Kh {
		font-weight: bold;
		font-size: 24rpx;
		color: #222222;
		margin-top: 10rpx;
	}

	/* 负责人、实施等内容 */
	.box_Fzr {
		margin-top: 10rpx;
		font-weight: 400;
		font-size: 24rpx;
		color: #666666;
		display: flex;
		flex-direction: column;
	}

	/* 图片的统一样式 */
	.project-image {
		width: 140rpx;
		height: 140rpx;
		border-radius: 8rpx;
		object-fit: cover;
	}

	/* 样式调整：根据需要再添加相关的 tab 样式 */
	.tabs {
		display: flex;
		justify-content: space-around;
		background-color: #ffffff;
		position: relative;
	}

	.tab {
		padding: 10px 20px;
		cursor: pointer;
		position: relative;
		text-align: center;
		font-weight: bold;
		font-size: 28rpx;
		color: #999999;
	}

	.tab.active {
		font-weight: bold;
		font-size: 32rpx;
		color: #222222;
	}

	.underline {
		position: absolute;
		bottom: 0;
		left: 50%;
		transform: translateX(-50%);
		width: 100%;
		height: 4px;
		background-color: #007AFF;
	}
</style>